﻿package com.mui.controls
{
    import com.gengine.global.*;
    import com.mui.utils.*;
    import flash.display.*;

    public class GBitmap extends Bitmap implements IFrUI
    {
        protected var _isDisposed:Boolean = false;
        protected var _targetUrl:String = "";

        public function GBitmap(param1:BitmapData = null, param2:String = "auto", param3:Boolean = false)
        {
            super(param1, param2, param3);
            return;
        }// end function

        public function get targetUrl() : String
        {
            return this._targetUrl;
        }// end function

        public function set targetUrl(param1:String) : void
        {
            this._targetUrl = param1;
            return;
        }// end function

        public function get isDisposed() : Boolean
        {
            return this._isDisposed;
        }// end function

        public function set isDisposed(param1:Boolean) : void
        {
            this._isDisposed = param1;
            return;
        }// end function

        public function configEventListener(param1:String, param2:Function, param3:Boolean = false, param4:int = 0, param5:Boolean = false) : void
        {
            return;
        }// end function

        public function dispose(param1:Boolean = true) : void
        {
            if (this._isDisposed && param1)
            {
                if (Global.isDebugModle)
                {
                    Alert.show("存在组件二次释放" + this.toString());
                }
                return;
            }
            this.x = 0;
            this.y = 0;
            this._isDisposed = true;
            this._targetUrl = "";
            this.bitmapData = null;
            this.rotation = 0;
            if (this.parent)
            {
                this.parent.removeChild(this);
            }
            if (param1)
            {
                UICompomentPool.disposeUICompoment(this);
            }
            return;
        }// end function

    }
}
